package com.cskaoyan.mall.service;

import com.cskaoyan.mall.model.po.Admin;
import com.cskaoyan.mall.model.bo.admin.AdminChangePwdBo;
import com.cskaoyan.mall.model.bo.admin.AdminLoginBo;

import java.util.List;

/**
 * @ClassName: AdminService
 * @Description: TODO
 * @Auther 庄左
 * @Date 2022/6/28 18:53
 * @Version
 **/
public interface AdminService {

    Admin login(AdminLoginBo adminLoginBo) ;

    List<AdminLoginBo> search();
    /**
    * @Author: 庄左
    * @Description: 通过昵称或用户名查找
    * @DateTime: 2022/7/2 21:16
    */
    List<AdminLoginBo> selectByName(AdminLoginBo adminLoginBo) ;
    /**
    * @Author: 庄左
    * @Description: 新增admin
    * @DateTime: 2022/7/2 20:49
    */
    void addAdmins(AdminLoginBo adminLoginBo) ;
    void deleteAdmins(Integer id) ;
    //通过id查询管理员信息
    Admin selectById(Integer id);

    /**
    * @Author: 庄左
    * @Description: 更改任意admin的信息
    * @DateTime: 2022/7/2 20:45
    */
    void updateAdmins(AdminLoginBo adminLoginBo);
    /**
    * @Author: 庄左
    * @Description: 修改当前admin自己的密码
     *
    * @DateTime: 2022/7/2 20:35
    */
    void changePwd(AdminChangePwdBo adminChangePwdBo);


}
